package com.dy.design_pattern_study.decoration_mode.dome.second.impl;

import com.dy.design_pattern_study.decoration_mode.dome.second.Decorator;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-03-13
 * @Content 具体的装饰对象 给 component 动态的添加装饰 新职责(新功能)
 */
public class ConcreteDecoratorA extends Decorator {

    private String addedState;

    @Override
    public void Operation(){
        super.Operation();
        addedState = "new state";
        System.out.println("具体装饰对象A的操作...");
    }
}
